
<template>
<div style="width: 430px;height: 932px;">
  <h1>评价</h1>
  <el-form v-model="pojo">
    <el-form-item label="" prop="desc">
      <el-input type="textarea" v-model="pojo.ordernotes" placeholder="对商品进行评价"></el-input>
    </el-form-item>
    <el-form-item>
      <el-button type="primary" @click="submitForm()">提交</el-button>
    </el-form-item>
  </el-form>
</div>
</template>

<script>
import axios from "axios";

export default {
  data() {
    return {
      pojo:{},
      pingjiaId:localStorage.getItem("pingjiaId"),
    }
  },
  methods: {
    submitForm(){
      axios.post("/shoppingorder/updatebz?id="+this.pingjiaId+"&bz="+this.pojo.ordernotes).then(res=>{
        this.$toast("评价成功");
      })
    },
  },
  created() {
  },
}
</script>

<style scoped>

</style>
